import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import '@/assets/base.css';
import '@/assets/fonts/iconfont.css';
//引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//引入封装的面包屑-------------------------
import bread from "@/common/bread.vue";
//定义全局组件
Vue.component('bread',bread);
//引入axios 把axios方法挂载到vue原型上面，直接继承
//把axios抽离出去，封装引入
// import axios from 'axios'
//  Vue.prototype.$ajax=axios
// axios.defaults.baseURL='http://klxin.cn:8888/api/private/v1/'

//引用tree插件 全局组件
import ZkTable from 'vue-table-with-tree-grid';
Vue.component('zk-table', ZkTable);
//方法二  Vue.use(ZkTable)

//全局过滤器----格式化时间函数-------------------
Vue.filter('dateFormat', function (orignTime) {
  return new Date(orignTime).toLocaleString();
});
//引入miment 时间处理包-----------------------
import miment from 'miment';
Vue.filter('format', function (orignTime) {
  return miment().format('YYYY-MM-DD hh:mm:ss'); // 2018/04/09 23-49-36 568
});
//在vue的原型对象上挂载BUS-------------------------
var bus = new Vue();
Vue.prototype.$bus=bus;

//引入富文本包----------------------------------


Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
